Release 10.1A: OpenEdge Development:
ADM Reference


resetWidgetValue

Resets the SCREEN-VALUE of the object or objects identified in the name list back to its original value from its data source. If a field in the list is not found or there is no data source for a field in the list, FALSE is returned and it will process all others in the list.

Location: visual.p

Parameters:

INPUT namelist AS CHARACTER

The name of one or more objects, separated by commas.

Returns: LOGICAL

Notes: None

Examples:

The following illustrates the use of this method in 4GL code for use with a graphical user interface:

IF widgetIsModified("itemId":U) THEN resetWidgetValue("discount":U). 

The following illustrates the use of this method in DHTML code for use with a Web browser:

if (logic.widgetIsModified(‘orderlineviewv.itemnum’)) 
  logic.resetWidgetValue(‘customerviewv.discount’); 


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095